home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
JToolBarSeparatorBeanInfo.java
< prev
next >
Wrap
Text File
|
1998-09-18
|
3KB
|
74 lines
package com.symantec.itools.swing;
import java.beans.*;
import java.util.ResourceBundle;
import com.symantec.itools.swing.DesignTimeResourceBundle;
public final class JToolBarSeparatorBeanInfo
extends com.symantec.itools.beans.HelperBeanInfo
{
public JToolBarSeparatorBeanInfo()
{
setInheritSuperBeanInfo(true);
ResourceBundle resources = ResourceBundle.getBundle("com.symantec.itools.swing.DesignTimeResourceBundle");
String folderName = resources.getString(DesignTimeResourceBundle.SWING_ADDITIONS_FOLDER_TOOLBAR_KEY);
setComponentLibraryFolder(folderName);
setToolbarFolder(folderName);
setWinHelpKey(m_WinHelpID);
set16x16ColorIconName("JToolBarSeparator.gif");
}
public PropertyDescriptor[] getPropertyDescriptors()
{
try
{
final PropertyDescriptor hideFontPropertyDescriptor = new PropertyDescriptor("font", m_JToolBarSeparatorClass);
hideFontPropertyDescriptor.setHidden(true);
final PropertyDescriptor hideForegroundPropertyDescriptor = new PropertyDescriptor("foreground", m_JToolBarSeparatorClass);
hideForegroundPropertyDescriptor.setHidden(true);
final PropertyDescriptor hideBackgroundPropertyDescriptor = new PropertyDescriptor("background", m_JToolBarSeparatorClass);
hideBackgroundPropertyDescriptor.setHidden(true);
final PropertyDescriptor hideCursorPropertyDescriptor = new PropertyDescriptor("cursor", m_JToolBarSeparatorClass);
hideCursorPropertyDescriptor.setHidden(true);
final PropertyDescriptor hideEnabledPropertyDescriptor = new PropertyDescriptor("enabled", m_JToolBarSeparatorClass);
hideEnabledPropertyDescriptor.setHidden(true);
final PropertyDescriptor hideVisiblePropertyDescriptor = new PropertyDescriptor("visible", m_JToolBarSeparatorClass);
hideVisiblePropertyDescriptor.setHidden(true);
return new PropertyDescriptor[]
{
hideFontPropertyDescriptor,
hideForegroundPropertyDescriptor,
hideBackgroundPropertyDescriptor,
hideCursorPropertyDescriptor,
hideEnabledPropertyDescriptor,
hideVisiblePropertyDescriptor,
};
}
catch(IntrospectionException e)
{
e.printStackTrace();
}
//Error, return no properties
return new PropertyDescriptor[0];
}
protected Class getBeanClass()
{
return m_JToolBarSeparatorClass;
}
protected final static String m_WinHelpID = "0x6013E";
protected final static Class m_JToolBarSeparatorClass = JToolBarSeparator.class;
}